<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:custom="http://esellerpro.com/sms" xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="/templates/mainTemplate.xhtml">

     <ui:define name="body">
      <p:poll interval="3" update="votes" />

    <p:pieChart id="votes" value="#{chartBean.livePieModel}" title="Live Chart"
                legendPosition="nw" style="width:400px;height:300px"/>

   </ui:define>
    <ui:define name="pageTitle">
        Chart

    </ui:define>
    </ui:composition>


</html>